
import request from '@/utils/request'

export const homeSwiper = () => {
    return request({
        method:'GET',
        url:'/home/swiperdata'
    })
}

export const homeCatitems = () => {
    return request({
        method:'GET',
        url:'/home/catitems'
    })
}

export const homeFloordata = () => {
    return request({
        method:'GET',
        url:'/home/floordata'
    })
}

export const getCategories = () => {
    return request({
        method:'GET',
        url:'/categories'
    })
}

export const goodsListSearch = (data) => {
    return request({
        method:'GET',
        url:'/goods/search',
        data,
    })
}

export const getGoodsDetail = (data) => {
    return request({
        method:'GET',
        url:'/goods/detail',
        data,
    })
}